﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Infrastructure.Dto.Request.Line
{
    /// <summary>
    /// 线路打卡记录创建请求DTO
    /// </summary>
    public class LinePunchRecordCreateRequestDto
    {
        /// <summary>
        /// 打卡Id
        /// </summary>
        [StringLength(32)]
        public string? Id { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        [StringLength(32)]
        public string? UserId { get; set; }

        /// <summary>
        /// 线路Id
        /// </summary>
        [StringLength(32)]
        public string LineId { get; set; } = null!;

        /// <summary>
        /// 开始时间
        /// </summary>
        [Column(TypeName = "timestamp without time zone")]
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 完成时间
        /// </summary>
        [Column(TypeName = "timestamp without time zone")]
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 扩展属性（JSON文本）
        /// </summary>
        public string? ExtraProperties { get; set; }
    }
}
